package com.eastfair.venueservice.dto;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.eastfair.core.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venueservice.enumeration.ServiceLossLossSourceEnum;
import com.eastfair.venueservice.enumeration.ServiceLossGoodsLossStateEnum;
import com.eastfair.venueservice.enumeration.ServiceLossReworkStateEnum;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 报损记录
 * </p>
 *
 * @author dq
 * @since 2022-09-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ServiceLossUpdateDTO", description = "报损记录")
public class ServiceLossUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 库存编码
     */
    @ApiModelProperty(value = "库存编码")
    @Size(max = 255, message = "库存编码长度不能超过255")
    private String inventoryCode;
    /**
     * 报损类型 #{SEVERE_DAMAGE:严重损坏;PARTIAL_DAMAGE:部分损坏;SLIGHT_DAMAGE:轻微损坏}
     */
    @ApiModelProperty(value = "报损类型 #{SEVERE_DAMAGE:严重损坏;PARTIAL_DAMAGE:部分损坏;SLIGHT_DAMAGE:轻微损坏}")
    private ServiceLossGoodsLossStateEnum goodsLossState;
    /**
     * 返修入库状态 #{NO:未返修入库;YES:已返修入库}
     */
    @ApiModelProperty(value = "返修入库状态 #{NO:未返修入库;YES:已返修入库}")
    private ServiceLossReworkStateEnum reworkState;
    /**
     * 损坏数量
     */
    @ApiModelProperty(value = "损坏数量")
    private BigDecimal lossNum;
    /**
     * 报损来源 #{IN_INVENTORY:入库报损;RETURN_SERVICE:归还报损}
     */
    @ApiModelProperty(value = "报损来源 #{IN_INVENTORY:入库报损;RETURN_SERVICE:归还报损}")
    private ServiceLossLossSourceEnum lossSource;
    /**
     * 报损日期
     */
    @ApiModelProperty(value = "报损日期")
    private LocalDate lossTime;
    /**
     * 报损经办人
     */
    @ApiModelProperty(value = "报损经办人")
    private Long lossOperator;
    /**
     * 报损经办人姓名
     */
    @ApiModelProperty(value = "报损经办人姓名")
    @Size(max = 100, message = "报损经办人姓名长度不能超过100")
    private String lossOperatorName;
    /**
     * 返修入库日期
     */
    @ApiModelProperty(value = "返修入库日期")
    private LocalDate repairTime;
    /**
     * 返修经办人
     */
    @ApiModelProperty(value = "返修经办人")
    private Long repairOperator;
    /**
     * 返修经办人姓名
     */
    @ApiModelProperty(value = "返修经办人姓名")
    @Size(max = 100, message = "返修经办人姓名长度不能超过100")
    private String repairOperatorName;
}
